﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;

namespace Unity.Hotfix
{
    public class TestWnd : UIWindow
    {
        public override string prefabPath => "TestWnd";

        public override void OnInitWnd(GameObject obj)
        {
            base.OnInitWnd(obj);
            Debug.Log("=====>TestWnd : OnInitWnd");
            obj.transform.Find("btn").GetComponent<Button>().onClick.AddListener(() =>
            {
                Debug.Log("======> btn.onClick");

            });

        }
        public override void OnShowWnd()
        {
            base.OnShowWnd();

        }

        public override void OnAtTopWnd()
        {
            base.OnAtTopWnd();
            Debug.Log("=====>TestWnd : OnAtTopWnd");

        }

        public override void OnCloseWnd()
        {
            base.OnCloseWnd();
            Debug.Log("=====>TestWnd : OnCloseWnd");
        }
    }
}
